package com.family.web.controller.pedigree;

import com.family.common.core.domain.AjaxResult;
import com.family.pedigree.service.IFamilyStatisticsService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author forever
 * Date 2025/1/14 0:00
 * desc 首页统计
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/family/statistics")
public class FamilyStatisticsController {

    private final IFamilyStatisticsService familyStatisticsService;


    @GetMapping("/panel")
    public AjaxResult panel() {

        return AjaxResult.success(familyStatisticsService.panel());
    }
}
